export const requestData = (type) => {
  const startTime = new Date().getTime() + 60000
  const endTime = startTime + 120000
  const alertTime = '2022-08-10 08:24:45'
  if (true) {
    return [
      {
        name: "着火事件",
        url:"/api/smokeStatus",
        tags: "POST",
      },
      {
        name: "会议室预约",
        tags: "POST",
        url: "/api/booking",
        flag: 1,
        requestParams: [
          {
            title: "twinID",
            notes: "会议室ID",
            REQUIRED: true,
            type: "String",
            value: "儿童公园",
          },
          {
            title: "startTime",
            notes: "开始时间",
            REQUIRED: true,
            type: "Number",
            value: startTime,
          },
          {
            title: "endTime",
            notes: "结束时间",
            REQUIRED: true,
            type: "Number",
            value: endTime,
          },
        ],
      },
      {
        name: "一键会议模式",
        tags: "POST",
        url: "/api/OneClickOn",
        flag: 0,
        requestParams: [
          {
            title: "twinID",
            notes: "会议室ID",
            REQUIRED: true,
            type: "String",
            value: "儿童公园",
          },
          {
            title: "fullTime",
            notes: "时间",
            REQUIRED: true,
            type: "datetimerange",
            value: ''
          },
        ],
      },
      {
        name: "监控告警推送",
        tags: "POST",
        url: "/api/updataEq",
        requestParams: [
          {
            title: "twinID",
            notes: "摄像头ID",
            REQUIRED: true,
            type: "String",
            value: "儿童公园摄像头",
          },
          {
            title: "severity",
            notes: "告警等级",
            REQUIRED: true,
            type: "Number",
            value: 1,
          },
          {
            title: "status",
            notes: "告警状态",
            REQUIRED: true,
            type: "Number",
            value: 1,
          },
          {
            title: "sourceAlertKey",
            notes: "告警类型",
            REQUIRED: true,
            type: "String",
            value: "入侵",
          },
          {
            title: "summary",
            notes: "告警信息",
            REQUIRED: true,
            type: "String",
            value: "入侵",
          },
          {
            title: "sourceIdentifier",
            notes: "标识",
            REQUIRED: true,
            type: "String",
            value: "入侵",
          },
          {
            title: "lastOccurrence",
            notes: "最后告警时间",
            REQUIRED: true,
            type: "datetime",
            value: alertTime,
          },
          {
            title: 'param2',
            notes: "开启或关闭",
            REQUIRED: true,
            type: "String",
            value: '开启',
          }
        ],
      },
      {
        name: "停车位监控告警推送",
        tags: "POST",
        url: "/api/updataEq",
        requestParams: [
          {
            title: "twinID",
            notes: "摄像头ID",
            REQUIRED: true,
            type: "String",
            value: "停车位_1",
          },
          {
            title: "severity",
            notes: "告警等级",
            REQUIRED: true,
            type: "Number",
            value: 1,
          },
          {
            title: "status",
            notes: "告警状态",
            REQUIRED: true,
            type: "Number",
            value: 1,
          },
          {
            title: "sourceAlertKey",
            notes: "告警类型",
            REQUIRED: true,
            type: "String",
            value: "违规",
          },
          {
            title: "summary",
            notes: "告警信息",
            REQUIRED: true,
            type: "String",
            value: "违规",
          },
          {
            title: "sourceIdentifier",
            notes: "标识",
            REQUIRED: true,
            type: "String",
            value: "违规",
          },
          {
            title: "lastOccurrence",
            notes: "最后告警时间",
            REQUIRED: true,
            type: "datetime",
            value: alertTime,
          },
          {
            title: 'param2',
            notes: "开启或关闭",
            REQUIRED: true,
            type: "String",
            value: '开启',
          }
        ],
      },
      // {
      //   name: "访客到来",
      //   tags: "POST",
      //   url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
      //   flag: 3,
      //   requestParams: [
      //     {
      //       title: "twinID",
      //       notes: "车位ID",
      //       REQUIRED: true,
      //       type: "String",
      //       value: "停车位_1",
      //     },
      //     {
      //       title: "metric",
      //       notes: "属性名",
      //       REQUIRED: true,
      //       type: "String",
      //       value: '车辆离开'
      //     },
      //     {
      //       title: "val",
      //       notes: "属性值",
      //       REQUIRED: true,
      //       type: "String",
      //       value: '是否离开'
      //     }
      //   ],
      // },
      {
        name: "访客到来",
        tags: "POST",
        url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
        flag: 3,
        requestParams: [
          {
            title: "twinID",
            notes: "车位ID",
            REQUIRED: true,
            type: "String",
            value: "停车位_1",
          },
          {
            title: "metric",
            notes: "属性名",
            REQUIRED: true,
            type: "String",
            value: '车位状态'
          },
          {
            title: "val",
            notes: "属性值",
            REQUIRED: true,
            type: "String",
            value: '占用'
          }
        ],
      },
      {
        name: "访客离开车位",
        tags: "POST",
        url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
        flag: 3,
        requestParams: [
          {
            title: "twinID",
            notes: "车位ID",
            REQUIRED: true,
            type: "String",
            value: "停车位_1",
          },
          {
            title: "metric",
            notes: "属性名",
            REQUIRED: true,
            type: "String",
            value: '车位状态'
          },
          {
            title: "val",
            notes: "属性值",
            REQUIRED: true,
            type: "String",
            value: '占用'
          }
        ],
      },

      {
        name: "天气下雨",
        tags: "POST",
        url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
        flag: 3,
        requestParams: [
          {
            title: "twinID",
            notes: "园区ID",
            REQUIRED: true,
            type: "String",
            value: "云扬园区场景",
          },
          {
            title: "metric",
            notes: "属性名",
            REQUIRED: true,
            type: "String",
            value: '天气'
          },
          {
            title: "val",
            notes: "属性值",
            REQUIRED: true,
            type: "String",
            value: '下雨'
          }
        ],
      },
      {
        name: "天气晴",
        tags: "POST",
        url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
        flag: 3,
        requestParams: [
          {
            title: "twinID",
            notes: "园区ID",
            REQUIRED: true,
            type: "String",
            value: "云扬园区场景",
          },
          {
            title: "metric",
            notes: "属性名",
            REQUIRED: true,
            type: "String",
            value: '天气'
          },
          {
            title: "val",
            notes: "属性值",
            REQUIRED: true,
            type: "String",
            value: '晴天'
          }
        ],
      },
      {
        name: "电梯运行7楼",
        tags: "POST",
        url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
        flag: 3,
        requestParams: [
          {
            title: "twinID",
            notes: "电梯ID",
            REQUIRED: true,
            type: "String",
            value: "电梯_1",
          },
          {
            title: "metric",
            notes: "属性名",
            REQUIRED: true,
            type: "String",
            value: '当前楼层'
          },
          {
            title: "val",
            notes: "属性值",
            REQUIRED: true,
            type: "String",
            value: 'F7'
          }
        ],
      },
      {
        name: "电梯运行1楼",
        tags: "POST",
        url: "https://thingjsx.thingjs.com/thing/provider/rest/monitor/dynamics/2415605243681311",
        flag: 3,
        requestParams: [
          {
            title: "twinID",
            notes: "电梯ID",
            REQUIRED: true,
            type: "String",
            value: "电梯_1",
          },
          {
            title: "metric",
            notes: "属性名",
            REQUIRED: true,
            type: "String",
            value: '当前楼层'
          },
          {
            title: "val",
            notes: "属性值",
            REQUIRED: true,
            type: "String",
            value: 'F1'
          }
        ],
      },
     
    ]
  }
}